package lab02.test6;

public class Ladder {
    double upperBase;
    double sideLine;
    double high;
    double area;
    Ladder(){
    }

    public Ladder(double upperBase, double sideLine, double high) {
        this.upperBase = upperBase;
        this.sideLine = sideLine;
        this.high = high;
    }

    public double getUpperBase() {
        return upperBase;
    }

    public double getSideLine() {
        return sideLine;
    }

    public double getHigh() {
        return high;
    }

    public void setUpperBase(double upperBase) {
        this.upperBase = upperBase;
    }

    public void setSideLine(double sideLine) {
        this.sideLine = sideLine;
    }

    public void setHigh(double high) {
        this.high = high;
    }
    void count(){
        area=(upperBase+sideLine)*high/2;
        System.out.println("the ladder is "+area);
    }
}
